package com.scs.application.modules.dept.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.core.query.QueryContext;
import com.scs.application.core.query.QueryContextHolder;
import com.scs.application.modules.sys.model.PageResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.scs.application.core.mvc.controller.CrudController;
import com.scs.application.modules.dept.service.MonthlyBalanceItemService;
import com.scs.application.modules.dept.entity.MonthlyBalanceItem;

/**
 * <p>
 *  前端控制器
 * </p>
 */
@RestController
@RequestMapping("/dept/monthly_balance_item")
public class MonthlyBalanceItemController extends CrudController<MonthlyBalanceItemService, MonthlyBalanceItem>{




    @GetMapping("/pageHis")
    public PageResult pageHis() {
        QueryContext queryContext = QueryContextHolder.currentContext();
        IPage pageResult = service.pageHis(queryContext);
        return PageResult.ok("查询成功", pageResult.getRecords(), pageResult.getTotal());
    }
}
